<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>IDA SDK: Functions: custom viewer handlers</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IDA SDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="files.html"><span>Header&#160;Files</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions: custom viewer handlers</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Convenience functions for <a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334a5ff634bfdb2e6a4e4a7c3aea12649460" title="ui: see set_custom_viewer_handler(). ">ui_set_custom_viewer_handler</a>. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga6943b60e161107562db901dcc1b0d11c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga6943b60e161107562db901dcc1b0d11c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ui__scvh__funcs.html#ga6943b60e161107562db901dcc1b0d11c">set_custom_viewer_handlers</a> (TWidget *custom_viewer, const <a class="el" href="classcustom__viewer__handlers__t.html">custom_viewer_handlers_t</a> *cvh, void *cvh_ud)</td></tr>
<tr class="memdesc:ga6943b60e161107562db901dcc1b0d11c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set handlers for custom viewer events Any of these handlers may be NULL. <br /></td></tr>
<tr class="separator:ga6943b60e161107562db901dcc1b0d11c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga35b5933ade6f61ad603b7b91bc3d98de"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ui__scvh__funcs.html#ga35b5933ade6f61ad603b7b91bc3d98de">set_custom_viewer_handler</a> (TWidget *custom_viewer, <a class="el" href="kernwin_8hpp.html#adca3d7a02a6f5b01aabd7a0e56403132">custom_viewer_handler_id_t</a> handler_id, void *handler_or_data)</td></tr>
<tr class="memdesc:ga35b5933ade6f61ad603b7b91bc3d98de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a handler for a custom viewer event (<a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334a5ff634bfdb2e6a4e4a7c3aea12649460" title="ui: see set_custom_viewer_handler(). ">ui_set_custom_viewer_handler</a>).  <a href="#ga35b5933ade6f61ad603b7b91bc3d98de">More...</a><br /></td></tr>
<tr class="separator:ga35b5933ade6f61ad603b7b91bc3d98de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1f61099ee5fc6819ea1079ccb97cd4af"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1f61099ee5fc6819ea1079ccb97cd4af"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ui__scvh__funcs.html#ga1f61099ee5fc6819ea1079ccb97cd4af">set_custom_viewer_qt_aware</a> (TWidget *custom_viewer)</td></tr>
<tr class="memdesc:ga1f61099ee5fc6819ea1079ccb97cd4af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow the given viewer to interpret Qt events (<a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334a5ff634bfdb2e6a4e4a7c3aea12649460" title="ui: see set_custom_viewer_handler(). ">ui_set_custom_viewer_handler</a>) <br /></td></tr>
<tr class="separator:ga1f61099ee5fc6819ea1079ccb97cd4af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaef731725037023702814cd35dcee2c7e"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ui__scvh__funcs.html#gaef731725037023702814cd35dcee2c7e">set_code_viewer_handler</a> (TWidget *code_viewer, <a class="el" href="kernwin_8hpp.html#adca3d7a02a6f5b01aabd7a0e56403132">custom_viewer_handler_id_t</a> handler_id, void *handler_or_data)</td></tr>
<tr class="memdesc:gaef731725037023702814cd35dcee2c7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a handler for a code viewer event (<a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334a5ff634bfdb2e6a4e4a7c3aea12649460" title="ui: see set_custom_viewer_handler(). ">ui_set_custom_viewer_handler</a>).  <a href="#gaef731725037023702814cd35dcee2c7e">More...</a><br /></td></tr>
<tr class="separator:gaef731725037023702814cd35dcee2c7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4bdba38e8d09307f2b64f999368c9f31"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga4bdba38e8d09307f2b64f999368c9f31"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ui__scvh__funcs.html#ga4bdba38e8d09307f2b64f999368c9f31">set_code_viewer_user_data</a> (TWidget *code_viewer, void *ud)</td></tr>
<tr class="memdesc:ga4bdba38e8d09307f2b64f999368c9f31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the user data on a code viewer (<a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334a5ff634bfdb2e6a4e4a7c3aea12649460" title="ui: see set_custom_viewer_handler(). ">ui_set_custom_viewer_handler</a>). <br /></td></tr>
<tr class="separator:ga4bdba38e8d09307f2b64f999368c9f31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga65aacdc29a9460afa1e8023d204d6a7d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga65aacdc29a9460afa1e8023d204d6a7d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ui__scvh__funcs.html#ga65aacdc29a9460afa1e8023d204d6a7d">set_code_viewer_lines_icon_margin</a> (TWidget *code_viewer, int margin)</td></tr>
<tr class="memdesc:ga65aacdc29a9460afa1e8023d204d6a7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set space allowed for icons in the margin of a code viewer (<a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334a5ff634bfdb2e6a4e4a7c3aea12649460" title="ui: see set_custom_viewer_handler(). ">ui_set_custom_viewer_handler</a>). <br /></td></tr>
<tr class="separator:ga65aacdc29a9460afa1e8023d204d6a7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6907e39497c73d004ea58bb84c704540"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga6907e39497c73d004ea58bb84c704540"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ui__scvh__funcs.html#ga6907e39497c73d004ea58bb84c704540">set_code_viewer_lines_alignment</a> (TWidget *code_viewer, int align)</td></tr>
<tr class="memdesc:ga6907e39497c73d004ea58bb84c704540"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set alignment for lines in a code viewer (<a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334a5ff634bfdb2e6a4e4a7c3aea12649460" title="ui: see set_custom_viewer_handler(). ">ui_set_custom_viewer_handler</a>). <br /></td></tr>
<tr class="separator:ga6907e39497c73d004ea58bb84c704540"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac251992a5e4e09efce8101827915b3f7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac251992a5e4e09efce8101827915b3f7"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ui__scvh__funcs.html#gac251992a5e4e09efce8101827915b3f7">set_code_viewer_lines_radix</a> (TWidget *code_viewer, int radix)</td></tr>
<tr class="memdesc:gac251992a5e4e09efce8101827915b3f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set radix for values displayed in a code viewer (<a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334a5ff634bfdb2e6a4e4a7c3aea12649460" title="ui: see set_custom_viewer_handler(). ">ui_set_custom_viewer_handler</a>). <br /></td></tr>
<tr class="separator:gac251992a5e4e09efce8101827915b3f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa3f4ee8bf283ad7ff9d525e8b5a42e02"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa3f4ee8bf283ad7ff9d525e8b5a42e02"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ui__scvh__funcs.html#gaa3f4ee8bf283ad7ff9d525e8b5a42e02">set_code_viewer_is_source</a> (TWidget *code_viewer)</td></tr>
<tr class="memdesc:gaa3f4ee8bf283ad7ff9d525e8b5a42e02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specify that the given code viewer is used to display source code (<a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334a5ff634bfdb2e6a4e4a7c3aea12649460" title="ui: see set_custom_viewer_handler(). ">ui_set_custom_viewer_handler</a>). <br /></td></tr>
<tr class="separator:gaa3f4ee8bf283ad7ff9d525e8b5a42e02"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga35b5933ade6f61ad603b7b91bc3d98de"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void* set_custom_viewer_handler </td>
          <td>(</td>
          <td class="paramtype">TWidget *&#160;</td>
          <td class="paramname"><em>custom_viewer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="kernwin_8hpp.html#adca3d7a02a6f5b01aabd7a0e56403132">custom_viewer_handler_id_t</a>&#160;</td>
          <td class="paramname"><em>handler_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>handler_or_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set a handler for a custom viewer event (<a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334a5ff634bfdb2e6a4e4a7c3aea12649460" title="ui: see set_custom_viewer_handler(). ">ui_set_custom_viewer_handler</a>). </p>
<p>see also <a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334af7e8e6d4d87c505b5a84e51ae15a8397" title="ui: see set_custom_viewer_handlers() ">ui_set_custom_viewer_handlers</a> </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">custom_viewer</td><td>the custom viewer </td></tr>
    <tr><td class="paramname">handler_id</td><td>one of CVH_ in <a class="el" href="kernwin_8hpp.html#adca3d7a02a6f5b01aabd7a0e56403132" title="Custom viewer & code viewer handler types. ">custom_viewer_handler_id_t</a> </td></tr>
    <tr><td class="paramname">handler_or_data</td><td>can be a handler or data. see examples in <a class="el" href="group__ui__scvh__funcs.html">Functions: custom viewer handlers</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>old value of the handler or data </dd></dl>

</div>
</div>
<a class="anchor" id="gaef731725037023702814cd35dcee2c7e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void* set_code_viewer_handler </td>
          <td>(</td>
          <td class="paramtype">TWidget *&#160;</td>
          <td class="paramname"><em>code_viewer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="kernwin_8hpp.html#adca3d7a02a6f5b01aabd7a0e56403132">custom_viewer_handler_id_t</a>&#160;</td>
          <td class="paramname"><em>handler_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>handler_or_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set a handler for a code viewer event (<a class="el" href="kernwin_8hpp.html#a4a23e389ff9cbf1cd31179ca2f393334a5ff634bfdb2e6a4e4a7c3aea12649460" title="ui: see set_custom_viewer_handler(). ">ui_set_custom_viewer_handler</a>). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">code_viewer</td><td>the code viewer </td></tr>
    <tr><td class="paramname">handler_id</td><td>one of CDVH_ in <a class="el" href="kernwin_8hpp.html#adca3d7a02a6f5b01aabd7a0e56403132" title="Custom viewer & code viewer handler types. ">custom_viewer_handler_id_t</a> </td></tr>
    <tr><td class="paramname">handler_or_data</td><td>can be a handler or data. see examples in <a class="el" href="group__ui__scvh__funcs.html">Functions: custom viewer handlers</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>old value of the handler or data </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
